package com.backstage.entity;

import com.backstage.common.uitil.DateUtil;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Project authority
 * @Package com.backstage.entity
 * @Data 2017/7/13下午 2:50.
 * @Aurhor 阮雪峰
 */
public class Menu extends BaseEntity{
    private int menu_id;
    private int super_id;
    private Menu superMenu;
    private boolean spread;
    private String title;
    private String icon;
    private String href;
    private int type;//1、菜单 2、列表 3、按钮
    private int sort;
    private long creator;
    private User user;
    private String create_time;
    private long editor;
    private String update_time;
    private String identify;


    private List<Menu> children = new ArrayList<>();
    private String[] typeArr;

    public String[] getTypeArr() {
        return typeArr;
    }

    public void setTypeArr(String[] typeArr) {
        this.typeArr = typeArr;
    }

    public String getLabel(){
        return title;
    }

    public int getValue(){
        return menu_id;
    }
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Menu getSuperMenu() {
        return superMenu;
    }

    public void setSuperMenu(Menu superMenu) {
        this.superMenu = superMenu;
    }

    public String getIdentify() {
        return identify;
    }

    public void setIdentify(String identify) {
        this.identify = identify;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public int getMenu_id() {
        return menu_id;
    }

    public void setMenu_id(int menu_id) {
        this.menu_id = menu_id;
    }

    public int getSuper_id() {
        return super_id;
    }

    public void setSuper_id(int super_id) {
        this.super_id = super_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public long getCreator() {
        return creator;
    }

    public void setCreator(long creator) {
        this.creator = creator;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public long getEditor() {
        return editor;
    }

    public void setEditor(long editor) {
        this.editor = editor;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }
}
